package com.app.fenak;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.ListView;
import android.widget.Toast;

public class UsePathActivity extends Activity {

	private ListView pathsList;
	private View addPath;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.use_path_view);
		
		pathsList = (ListView) findViewById(R.id.paths_list);
		pathsList.setAdapter(new PathsListAdapter(this));
		
		addPath = findViewById(R.id.add_path_btn);
		addPath.setClickable(true);
		addPath.setOnClickListener(new View.OnClickListener() {
			
			@Override
			public void onClick(View v) {
				Toast.makeText(UsePathActivity.this, "Add Path from server", Toast.LENGTH_SHORT).show();
			}
		});
	}
}
